﻿using FDStudio.Core.Entities;
using FDStudio.Core.Entities.Query;
using System;
using System.Linq.Expressions;

namespace FDStudio.Core.Repositories
{
    /*
     CreatedOn: 2018-01-27
     CreatedBy: Jackie Lee(天宇遊龍)
     */
    /// <summary>
    /// 分页
    /// </summary>
    public interface IPagedReadRepository<T> : IReadOnlyRepository<T> where T : class, IEntity
    {
        PagedList<T> GetList(Expression<Func<T, bool>> condition, long pageIndex, long pageSize, IQueryOrder<T> orderBy = null);
    }
}
